package com.fangcun.mapper;

import java.util.List;

import com.fangcun.bean.admin.agent.response.AgentOrderResponse;
import com.fangcun.bean.api.agent.order.request.AgentOrderRequest;
import com.fangcun.bean.api.agent.order.response.AgentOrderForResponse;
import com.fangcun.entity.AgentOrder;

public interface AgentOrderMapper {
	int deleteByPrimaryKey(Long id);

	int insert(AgentOrder record);

	int insertSelective(AgentOrder record);

	AgentOrder selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AgentOrder record);

	int updateByPrimaryKey(AgentOrder record);

	List<AgentOrderResponse> listForAdminByAgentId(AgentOrder request);
	    
	List<com.fangcun.bean.api.agent.order.response.AgentOrderResponse> selectByOrder(AgentOrderRequest agentId);
	
	List<AgentOrderForResponse> listForApiByAgentId(AgentOrder request);
	
	AgentOrder selectByOrderId(Long orderId);
	
	List<AgentOrder> selectByAgentId(Long agentId);
}